<meta title="输入宝贝链接" width="600px" />
<form class="p" s="form,valid" id="form" method="post" action="/api/seckillItem/detect">
    <input autocomplete="off" type="text" name="itemUrl" s-valid-error="require()" class="form-control" placeholder="请输入淘宝，京东宝贝的访问链接，仅支持PC端链接地址"/>
</form>
<script type="text/javascript">
    S.meta.btns =[
        {
            name: "下一步",
            click: function() {
                return $form.submit().done(function(rs) {
                    S.popupOpen("/seckill/seckillItem-add.html", {item: rs}).done(function(rs) {
                        rs && S.close(rs);
                    })
                })
            },
            style: "btn btn-primary"
        },
        {
            name: "关闭",
            click: function() {
                S.close();
            },
            style: "btn btn-default"
        }
    ]
</script>